{% extends 'custom_admin/base.html' %}

{% block title %}栏目审核流程配置{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <h2>栏目审核流程配置</h2>
            
            <!-- 栏目信息 -->
            <div class="card mb-4">
                <div class="card-header">
                    <h5>栏目信息</h5>
                </div>
                <div class="card-body">
                    <p><strong>栏目名称:</strong> {{ category.name }}</p>
                    <p><strong>栏目描述:</strong> {{ category.description }}</p>
                </div>
            </div>
            
            <!-- 审核流程配置表单 -->
            <div class="card">
                <div class="card-header">
                    <h5>审核流程配置</h5>
                </div>
                <div class="card-body">
                    <form method="post">
                        {% csrf_token %}
                        
                        <div class="mb-3">
                            <label for="{{ form.review_level.id_for_label }}" class="form-label">审核级别:</label>
                            {{ form.review_level }}
                        </div>
                        
                        <div class="mb-3">
                            <label for="{{ form.first_reviewer_group.id_for_label }}" class="form-label">初审员用户组:</label>
                            {{ form.first_reviewer_group }}
                        </div>
                        
                        <div class="mb-3">
                            <label for="{{ form.final_reviewer_group.id_for_label }}" class="form-label">终审员用户组:</label>
                            {{ form.final_reviewer_group }}
                        </div>
                        
                        <div class="mb-3 form-check">
                            {{ form.auto_publish }}
                            <label for="{{ form.auto_publish.id_for_label }}" class="form-check-label">自动发布</label>
                        </div>
                        
                        <div class="mb-3 form-check">
                            {{ form.notify_author }}
                            <label for="{{ form.notify_author.id_for_label }}" class="form-check-label">通知作者</label>
                        </div>
                        
                        <div class="mb-3 form-check">
                            {{ form.notify_reviewer }}
                            <label for="{{ form.notify_reviewer.id_for_label }}" class="form-check-label">通知审核员</label>
                        </div>
                        
                        <div class="mb-3 form-check">
                            {{ form.is_active }}
                            <label for="{{ form.is_active.id_for_label }}" class="form-check-label">启用</label>
                        </div>
                        
                        <div class="btn-group" role="group">
                            <button type="submit" class="btn btn-primary">保存配置</button>
                            <a href="{% url 'custom_admin:category_list' %}" class="btn btn-secondary">取消</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}